#ifndef HOTSPOT_H
#define HOTSPOT_H

#include <QGroupBox>
#include <QPushButton>
#include <QLabel>
#include <QSpinBox>
#include <QLineEdit>

#define COMMONDENSITY 10
#define MAXHOTSPOT     5

// Define hot spot property
class Hotspot{
public:
	Hotspot(): xcenter(-1), ycenter(-1),
	           sigmax(-1) , sigmay(-1),
	           users(-1){}
	void Set(   int xcenter,   int ycenter,
			 double sigmax, double sigmay,
			    int users);
	int    xcenter, ycenter;
	double sigmax,sigmay;
	int    users;
};

// GUI of hot spot configuration
class Hotspot_Config : public QGroupBox
{
	Q_OBJECT
public:
	Hotspot_Config(int i = 0);
public slots:
	void SetCenter(int x, int y);
	void SelectCenter(bool checked);
private:
	static int select;
	int		   num;
	int		   xcenter, ycenter;
	QPushButton *Center;
	QLabel      *sigmaxlabel,*sigmaylabel,
	            *userslabel;
	QLineEdit   *Sigmax, *Sigmay, *Users;

friend class Simulator;

};

#endif
